package com.han.gift.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.han.gift.common.util.AjaxResult;
import com.han.gift.dao.LoginUserDao;
import com.han.gift.entity.LoginUser;
import com.han.gift.service.LoginUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * (LoginUser)表服务实现类
 *
 * @author makejava
 * @since 2023-02-25 00:50:05
 */
@Service("loginUserService")
public class LoginUserServiceImpl extends ServiceImpl<LoginUserDao, LoginUser> implements LoginUserService {

    @Autowired
    LoginUserDao userDao;

    @Override
    public AjaxResult saveLoginUser(LoginUser user) {

        userDao.insert(user);

        return AjaxResult.me().setMessage("操作成功").setSuccess(true).setResultObj(user.getId());
    }
}

